import request from '@/utils/request'

// ! 分类列表
export function articleCateList (params) {
  return request({
    url: '/index/list',
    params
  })
}
// ! 文章详情
export function articleDetail (id) {
  return request({
    url: '/index/show',
    method: 'GET',
    params: {
      id
    }
  })
}

// ! 文章点赞
export function articleZan (params) {
  return request({
    url: '/user/userDataList',
    params
  })
}

// ! 文章收藏
export function articleSc (params) {
  return request({
    url: '/user/userDataList',
    params
  })
}

// !发布文章上传图片接口
export function getImg (data) {
  return request.post('/common/upload?type=images', data)
}
